<%@ page import="com.ssmm.ssmm1.pojo.Userr" %>
<%@ page import="java.util.List" %>
<%@ page import="com.ssmm.ssmm1.service.UserService" %>
<%@ page import="org.springframework.beans.factory.annotation.Autowired" %><%--
  Created by IntelliJ IDEA.
  User: naojiang
  Date: 2017/7/14
  Time: 11:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
<form name="form1" action="/user/list" method="get" >
    <table align="center" border="1" width="800">
        <tr>
            <td>标识</td><td>用户名</td><td>密码</td><td>昵称</td><td>性别</td><td>地址</td>
        </tr>

        <%
            List<Userr> list = (List<Userr>) session.getAttribute("list1");
            for(Userr u:list){
        %>
        <tr>
            <td><%=u.getId() %></td>
            <td><%=u.getUsername() %></td>
            <td><%=u.getPassword() %></td>
            <td><%=u.getNickname() %></td>
            <td><%=u.getSex() %></td>
            <td><%=u.getAddress() %></td>
            <td><a href="delete.jsp?id=<%=u.getId()%>">删除</a>&nbsp;<a href="update.jsp?id=<%=u.getId()%>">修改</a></td>
        </tr>
        <%
            }

        %>

    </table>
</form>
</body>
</html>
